﻿using System;

/// <summary>
/// SheetItemsJsonEntity 的摘要说明
/// </summary>
[Serializable]
public class EvalSheetsJsonEntity
{
    public EvalSheetsJsonEntity()
    {
    }

    private int _evalSheetID;
    private string _evalSheetName;
    private int _evalItemID;
    private string _evalItemName;
    private string _dateStr;
    private int _type;
    private bool _isModifyDateOrEvalItem;

    public int EvalSheetID
    {
        get { return _evalSheetID; }
        set { _evalSheetID = value; }
    }

    public string EvalSheetName
    {
        get { return _evalSheetName; }
        set { _evalSheetName = value; }
    }

    public int EvalItemID
    {
        get { return _evalItemID; }
        set { _evalItemID = value; }
    }

    public string EvalItemName
    {
        get { return _evalItemName; }
        set { _evalItemName = value; }
    }

    public string DateStr
    {
        get { return _dateStr; }
        set { _dateStr = value; }
    }

    /// <summary>
    /// 0: Save
    /// 1: Update
    /// </summary>
    public int Type
    {
        get { return _type; }
        set { _type = value; }
    }

    public bool ISModifyDateOrEvalItem
    {
        get { return _isModifyDateOrEvalItem; }
        set { _isModifyDateOrEvalItem = value; }
    }

    public bool Equals(EvalSheetsJsonEntity other)
    {
        if (ReferenceEquals(null, other)) return false;
        if (ReferenceEquals(this, other)) return true;
        return other._evalSheetID == _evalSheetID;
    }

    public override bool Equals(object obj)
    {
        if (ReferenceEquals(null, obj)) return false;
        if (ReferenceEquals(this, obj)) return true;
        if (obj.GetType() != typeof (EvalSheetsJsonEntity)) return false;
        return Equals((EvalSheetsJsonEntity) obj);
    }

    public override int GetHashCode()
    {
        return _evalSheetID;
    }
}
